package zsc.liangyi.blog.service;

import zsc.liangyi.blog.model.domain.Authority;
import zsc.liangyi.blog.model.domain.User;

import java.util.List;

public interface UserService {
    public User selectUserWithId(Integer id);

    public User getByUserName(String username);

    public List<Authority> getAuthority(String username);
    public List<User> getAllUser();
    public Integer addUser(User user);
    public Integer addAuthorityByUser(Integer userId,Integer authorityId);

    public Integer update(User user);
}
